package com.sky.config;

import com.sky.properties.LocalServerProperties;
import com.sky.utils.LocalServerUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.http.HttpServletRequest;

@Configuration
@Slf4j
public class FileConfiguration {
    @Bean
    public LocalServerUtil setLocalServer(LocalServerProperties properties){
        return new LocalServerUtil(properties.getFolder(),properties.getSchema(), properties.getName(), properties.getPort());

    }
}
